#!/usr/bin/env bash
while true
do
  ssh -oServerAliveInterval=10 -oStrictHostKeyChecking=no -NTR :80:192.168.149.15:80 `curl -skS https://gitee.com/booting/control/raw/master/meta.json|jq .remote|tr -d '"'`
  echo `date +"%Y/%m/%d %H:%M:%S"` retrying ...
done
